<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "mall_distribution".
 *
 * @property int $id
 * @property int $state 标识
 * @property string $level_one 等级1
 * @property string $level_two 等级2
 * @property int $create_time 创建时间
 * @property int $update_time 修改时间
 */
class MallDistribution extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mall_distribution';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['state', 'level_one', 'level_two', 'create_time'], 'required'],
            [['state', 'create_time', 'update_time'], 'integer'],
            [['level_one', 'level_two'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'state' => 'State',
            'level_one' => 'Level One',
            'level_two' => 'Level Two',
            'create_time' => 'Create Time',
            'update_time' => 'Update Time',
        ];
    }
}
